From 3f8ac0c38b68a65e22620b200e1994e78bd70c65 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 3 Aug 2005 16:58:26 +0000 Subject: [PATCH] strcasecmp -> case_ignore_strcmp git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1346 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.c | 6 +++--- gpsbabel/gpx.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index 70cfd8c33..263d4f95c 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -911,11 +911,11 @@ xcsv_parse_val(const char *s, waypoint *wpt, const field_map_t *fmp) if (strcmp(fmp->key, "GPS_FIX") == 0) { wpt->fix = atoi(s)-1; if ( wpt->fix < fix_2d) { - if (!strcasecmp(s, "none")) + if (!case_ignore_strcmp(s, "none")) wpt->fix = fix_none; - else if (!strcasecmp(s, "dgps")) + else if (!case_ignore_strcmp(s, "dgps")) wpt->fix = fix_dgps; - else if (!strcasecmp(s, "pps")) + else if (!case_ignore_strcmp(s, "pps")) wpt->fix = fix_pps; else wpt->fix = fix_unknown; diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 36cdb8493..8374d927c 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -839,11 +839,11 @@ gpx_end(void *data, const char *el) case tt_fix: wpt_tmp->fix = atoi(cdatastrp)-1; if ( wpt_tmp->fix < fix_2d) { - if (!strcasecmp(cdatastrp, "none")) + if (!case_ignore_strcmp(cdatastrp, "none")) wpt_tmp->fix = fix_none; - else if (!strcasecmp(cdatastrp, "dgps")) + else if (!case_ignore_strcmp(cdatastrp, "dgps")) wpt_tmp->fix = fix_dgps; - else if (!strcasecmp(cdatastrp, "pps")) + else if (!case_ignore_strcmp(cdatastrp, "pps")) wpt_tmp->fix = fix_pps; else wpt_tmp->fix = fix_unknown; -- 2.30.2